<include file="Public:header" /><style>
.header{display:none;}
.w790{margin-top:0;}
</style>
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    
 <div class="table_" style="margin-top:30px;">
 <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
    <td align="center">ID</td>
    <td align="center">商品名</td>
    <td align="center">图片</td>
    <td align="center">价格</td>
    <td align="center">数量</td>
    <td align="center">小计</td>
    <td align="center"><!--收货-->状态</td>
    <td align="center">供货商</td>
    <td align="center">物流单号</td>
    <!--
    <td align="center">状态</td>
    -->
    <td align="center">下单时间</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.product_id}" /></td>
    <td>{$vo.title}<p>
    
    <notempty name="vo['code']">
    货号：{$vo.code}
            </notempty>
            <?php if(!empty($vo['attrmes'][0])){?>
             <span style="color:rgba(203,189,190,1.00)">规格:&nbsp;&nbsp;</span>
             <?php foreach($vo['attrmes'] as $vos){?>
              <span><?php echo $vos ?>&nbsp;&nbsp;</span>
            <?php }?>
            <?php }?></p></td>
    <td align="center"><img src="{:getThumbPath($vo['img_url'])}" width="80" height="80"></td>
    <td><span style="font-size:18px; font-weight:bold; color:#f00;">¥{$vo.price}</span></td>
    <td>{$vo.num}</td>
    <td><span style="font-size:18px; color:#f00; font-weight:bold;">¥{$vo.total}</span></td>
    <td>
        <!--<if condition="$vo.confirm eq 0 ">正在发货<elseif condition="$vo.confirm eq 1"/>已收货</if>-->

        <!-- 0未发货，1部分发货，2全部发货，3部分确认，4全部确认 -->
        <eq name="vo['shipping_status']" value="0">未发货</eq>
        <eq name="vo['shipping_status']" value="1"><span style="color:#E8EB99; font-weight:bold; padding:4px; background:#D9534F;">部分发货</span></eq>
        <eq name="vo['shipping_status']" value="2"><span style="color:#C7CC3A; font-weight:bold; padding:4px;">全部发货</span></eq>
        <eq name="vo['shipping_status']" value="3">部分确认</eq>
        <eq name="vo['shipping_status']" value="4"><span style="color:#0ACD4B; font-weight:bold;">全部确认</span></eq>

    </td>
    <td align="center"><a target="_blank" href="{:U('Supplier/edit',array('id' => $vo['supplier_id']))}">{:getSupplier($vo['supplier_id'])}</a></td>
    <td>{$vo.logistics_num}</td>
    <!--
    <td align="center"><if condition="$vo.status eq 0 ">已取消<elseif condition="$vo.status eq 1"/>待支付<elseif condition="$vo.status eq 2"/>已支付<elseif condition="$vo.status eq 3"/>已发货</if></td>
    -->
    <td align="center">{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
  </tr>
</volist> 
</table>
 
      <div class="pages">
        
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
      
      
      
      
    </div>
  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />